<?php
namespace common\constants;

/**
 * 错误码常量
 */
class ErrorCode
{
    const SUCCESS = 0;

    const INVALID_CLIENT_PARAM = 400;
    const NOT_FOUND = 404;
    const NOT_ALLOWED_METHOD = 405;
    const SYSTEM_ERROR = 500;

    //Token错误
    const EMPTY_ACCESS_TOKEN = 1000;
    const INVALID_ACCESS_TOKEN = 1001;
    const EXPIRED_ACCESS_TOKEN = 1002;
    const INVALID_SIGN = 1010;

}